﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace JustMetClient.Models.PAModels
{
    /// <summary>
    /// 系统参数
    /// </summary>
    public class SystemParam
    {
        /// <summary>
        /// IP地址
        /// </summary>
        public string IP { get; set; }

        /// <summary>
        /// 物理地址
        /// </summary>
        public string Mac { get; set; }

        /// <summary>
        /// 证书信息
        /// </summary>
        public string PKIInfo { get; set; }

        /// <summary>
        /// 服务端IP
        /// </summary>
        public string ServerIP
        {
            get
            {
                return ConfigurationManager.AppSettings["ServerIP"];

            }
            private set
            {
                ConfigurationManager.AppSettings["ServerIP"] = value;
            }
        }

        /// <summary>
        /// 服务端端口号
        /// </summary>
        public int ServerPort
        {
            get
            {
                return int.Parse(ConfigurationManager.AppSettings["Port"]);
            }
            private set
            {
                ConfigurationManager.AppSettings["Port"] = value.ToString();
            }
        }



    }
}
